package com.launch.wlfw.dao;

import com.launch.wlfw.dto.LendListDTO;
import com.launch.wlfw.pojo.BookInfo;
import com.launch.wlfw.pojo.LendList;
import com.launch.wlfw.pojo.ReaderInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface LendMapper {
    List<LendListDTO> selectByParams(Map<String,String> params);
    int updateLendList(LendList lendList);
    int addLend(@Param("lendLists") List<LendList> lendLists);
    int deleteById(@Param("ids") List<Integer> ids);
    List<BookInfo> getAllBook(Map<String,String> params);
    int updateBookInfo(Map<String,String> params);
    ReaderInfo getReaderInfoByReaderNumber(String readerNumber);
}
